<?php session_start()?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Simpla Admin | Sign In</title>
<link rel="stylesheet" href="../skins/sa/resources/css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../skins/sa/resources/css/style.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../skins/sa/resources/css/invalid.css" type="text/css" media="screen" />	
<script type="text/javascript" src="../skins/sa/resources/scripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="../skins/sa/resources/scripts/simpla.jquery.configuration.js"></script>
<script type="text/javascript" src="../skins/sa/resources/scripts/facebox.js"></script>
<script type="text/javascript" src="../skins/sa/resources/scripts/jquery.wysiwyg.js"></script>
</head>
  
	<body id="login">
		
		<div id="login-wrapper" class="png_bg">
			<div id="login-top">
			
		    <h1>Facebook</h1>
				<!-- Logo (221px width) -->
			</div> <!-- End #logn-top -->
			
			<div id="login-content">
				
				<form action="dang_nhap_sm.php" method="post">
               
				<?php
				if (isset($_SESSION['msg'])){
					if ($_SESSION['msg'] != '') {
						echo '<div class="notification ', $_SESSION['type_msg'], ' png_bg">
						  <div>', $_SESSION['msg'], '</div>
						</div>';
										
						$_SESSION['msg'] = '';
					}
				}
				?>	
<p>
						<label>Username</label>
						<input class="text-input" type="text" name="ten_dang_nhap" id="ten_dang_nhap" value="<?php if (isset($_COOKIE['USERNAME'])) {echo $_COOKIE['USERNAME'];}?>"/>
					</p>
					<div class="clear"></div>
					<p>
						<label>Password</label>
						<input class="text-input" type="password" name="mat_khau" id="mat_khau" value="<?php if (isset($_COOKIE['PASSWORD'])) {echo base64_decode($_COOKIE['PASSWORD']);}?>" />
					</p>
					<div class="clear"></div>
					<p id="remember-password">
						<input type="checkbox" name="remember" />Remember me
					</p>
					<div class="clear"></div>
					<p>
						<input class="button" type="submit" value="Sign In" />
					</p>
					
				</form>
			</div> <!-- End #login-content -->
			
		</div> <!-- End #login-wrapper -->
  </body>
</html>
